/*
 * core/RPCResponse.java
 *
 * Basic RPC Response send by php backend system to allow error handling.
 */

package net.kernub.client.core;

import com.google.gwt.core.client.JavaScriptObject;

public class RPCResponse<Ty> extends JavaScriptObject
{
	protected RPCResponse() {}

	public final native boolean hasError() /*-{ return (this.err=="") ? false : true; }-*/;
	public final native String getError() /*-{ return this.err; }-*/;
	public final native Ty getObject() /*-{ return this.o; }-*/;
};

